package com.cu.employmentmanagementsystem.common.convert;

import com.cu.employmentmanagementsystem.dto.UserDTO;
import com.cu.employmentmanagementsystem.entity.User;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author CaptainUniverse_
 * @date 2024/7/1
 */
@Mapper
public interface UserDTOConverter
{
    public UserDTOConverter INSTANCE = Mappers.getMapper(UserDTOConverter.class);
    User convertDTOToEntity(UserDTO userDTO);
    UserDTO convertEntityToDTO(User user);
}
